package com.aliyun.oss.pojo.Vo;

public class ResultVO {
    private Integer status;
    private Object result;
    private String msg;
    public static ResultVO success(Object object){
        ResultVO resultVO = new ResultVO();
        resultVO.status=1;
        resultVO.result=object;
        resultVO.msg="success";
        return resultVO;
    }
    public static ResultVO success(){
        ResultVO resultVO=new ResultVO();
        resultVO.status=1;
        resultVO.msg= "success";
        return resultVO;
    }

    public static ResultVO error(String msg){
        ResultVO resultVO=new ResultVO();
        resultVO.status=0;
        resultVO.msg=msg;
        return resultVO;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
